<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

\backend\assets\LoginAsset::register($this);
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \backend\models\LoginForm */

$this->title = Yii::t('backend', 'Sign In');
$this->params['breadcrumbs'][] = $this->title;
//$this->params['body-class'] = 'login-page';
?>

<div class="head">
    <div><img src="/img/logo.png"></div>
</div>
<div class="middle">
    <div class="main-box">
        <div class="main-swiper">
            <ul class="swiper-list">
                <li class="swiper-item" style="opacity: 1;">
                    <img src="/img/banner1.png" alt="" style="width:100%;">
                </li>
                <li class="swiper-item" style="opacity: 0;">
                    <img src="/img/banner2.png" style="width:100%;">
                </li>
                <li class="swiper-item" style="opacity: 0;">
                    <img src="/img/banner3.png" style="width:100%;">
                </li>
            </ul>
            <ul class="swiper-dots">
                <li class="active"></li>
                <li class=""></li>
                <li class=""></li>
            </ul>
        </div>
    </div>
    <div class="login-head">通金所CRM管理系统</div>
    <div class="login-box">
        <div class="login-box-body">
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
            <div class="body">

                <div class="ui-input">
                    <?php echo $form->field($model, 'username', ['inputOptions' => [
                        'class' => 'form-control',
                        'id' => 'loginform-username',
                        'placeHolder'=>'请输入用户名'
                    ]])->label('',['class'=>'ui-input1']); ?>
                </div>
                <div class="ui-input">
                <?php echo $form->field($model, 'password',['inputOptions' => [
                    'class' => 'form-control',
                    'id' => 'loginform-password',
                    'placeHolder'=>'请输入密码'
                ]])->passwordInput()->label('',['class'=>'ui-input2']); ?>
                </div>

                <div class="form-group field-loginform-rememberme">
                    <div class="input-checkbox">
                        <input name="LoginForm[rememberMe]" value="0" type="hidden">
                        <input id="loginform-rememberme" class="simple" name="LoginForm[rememberMe]" value="1" checked="checked"
                                                                                           type="checkbox">
                        <label for="loginform-rememberme" class="label-remember"></label>
                        <span class="remember-password">记住密码</span>
                        <a href="" class="forget-password">忘记密码</a>
                        <p class="help-block help-block-error"></p>
                    </div>
                </div>
            </div>
                <div class="footer">
                    <button type="submit" class="btn btn-primary btn-flat btn-block login" name="login-button">登录
                    </button>
                </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
<div class="bottom">
    <div class="warp">
        <div class="inwrap">
            <ul>
                <li><a href="#">联系我们</a></li>
                <li><a href="#">帮助信息</a></li>
                <li><a href="#">京ICP备05002531号</a></li>
                <li><a href="#">通金所版权所有</a></li>
            </ul>
        </div>
    </div>
</div>

